package movierecommender

class User {
    
    static constraints = {
        userID(unique:true)
        username(blank:false,unique:true)
    }
    String username
    int userID
    static hasMany = [ratings:Ratings,movies:Movies]
    
    String toString(){
        return "${username}"
    }
}
